import http from './httpInstance'

// 1屏-左上-布撤防状态
export const houseInfoService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/houseInfo',
    data
  })
}

// 1屏-左下-温湿度数据
export const tempAndHumInfoService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/tempAndHumInfo',
    data
  })
}

// 1屏-右上-人员进出库
export const inAndOutRecordService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/inAndOutRecord',
    data
  })
}

// 1屏-右下-钥匙柜领取记录
export const keyUseRecordListService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/keyUseRecordList',
    data
  })
}

// 1屏-地图点击-军火库抓拍比对记录
export const arsenalSnapService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/arsenalSnap',
    data
  })
}

// 1屏-下-门禁记录
export const acsRecordListService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/acsRecordList',
    data
  })
}

// 2屏-中间-钥匙柜状态查询
export const keyStateService = (data) => {
  return http({
    method: 'post',
    url: '/csjzzav/ui/v1/barracks/keyState',
    data
  })
}

export default {
  keyStateService,
  arsenalSnapService,
  acsRecordListService,
  keyUseRecordListService,
  inAndOutRecordService,
  tempAndHumInfoService,
  houseInfoService
}
